<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html >
<script type="text/javascript">
<!--
function RegsiterSubmit(){

	with(document.order){
		var user=username.value;
		var cart=creditcard.value;
		if(user==null||user==""){
			alert("请填写用户名");
			}
			else if(cart==null||cart==""){
				alert("请填写信用卡号码");
				}
			else 
				document.order.submit();
		}
	}
//-->
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<CENTER>

			<form method="post" name="order" action="servlet/DoOrder">
				<TABLE style="TEXT-ALIGN: center" cellSpacing=1 cellPadding=1
					width=260 border=1>

					<!--   显示内容开始  -->

					<tr>
						<td colspan="2">
							<font size=4>订单处理 请输入如下信息：</font>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							用户名:
						</td>

						<td>
							<div align="left">
								<input type="text" name="username" size="25" />
							</div>
						</td>
					</tr>

					<tr>
						<td colspan="2">
							&nbsp;
						</td>
					</tr>

					<tr>
						<td>
							邮编:
						</td>

						<td>
							<div align="left">
								<input type="text" name="zipcode" size="25" />
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							电话:
						</td>

						<td>
							<div align="left">
								<input type="text" name="phone" size="25" />
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							信用卡:
						</td>

						<td>
							<div align="left">
								<input type="text" name="creditcard" size="25" />
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							<input type="button" value="提交" name="B1"
								onclick="RegsiterSubmit()" />
						</td>
						<td align="center">
							<input type="reset" value="重置" name="B2" />
						</td>
					</tr>
					<!--   显示内容结束  -->

				</TABLE>
			</form>
		</CENTER>

</body>
</html>